package demo1;

/**
 * @author GongXincheng
 * @since 2019-09-20 20:33
 */
public class BuilderB implements Builder {

    private Product product = new Product();

    @Override
    public void operationA() {
        product.getList().add("X");
    }

    @Override
    public void operationB() {
        product.getList().add("Z");
    }

    @Override
    public Product getProduct() {
        return product;
    }
}
